package com.ccepc.demo.api.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@TableName("plc_config")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "")
public class PlcConfig extends Model<PlcConfig> {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty(value="id")
    private Long id;

    @ApiModelProperty(value="设备编号")
    private String linkedId;

    @ApiModelProperty(value="plc类型")
    private String plcType;

    @ApiModelProperty(value="远程控制类型（0：自动，1：手动）")
    private Integer ldType;

    @ApiModelProperty(value="plc开启状态（0未开启，1开启）")
    private Integer plcStatus;

    @ApiModelProperty(value="plc ip")
    private String plcIp;

    @ApiModelProperty(value="plc点位")
    private String plcPoint;

    @ApiModelProperty(value="plc端口")
    private String plcPort;

    @ApiModelProperty(value="createdBy")
    private Long createdBy;

    @ApiModelProperty(value="createdTime")
    private LocalDateTime createdTime;

    @ApiModelProperty(value="updatedBy")
    private Long updatedBy;

    @ApiModelProperty(value="updatedTime")
    private LocalDateTime updatedTime;

}
